<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
html {
  font-family: Arial,Helvetica,sans-serif;
  background-color: white;
  color: black;
}
table {
  border-collapse: collapse;
  empty-cells: show;
  margin: 1em 0em;
  border: 1px solid black;
}
th, td {
  border: 1px solid black;
  padding: 0.1em 0.2em;
  height: 1.5em;
  width: 12em;
}
td.colspan4, th.colspan4 {
    width: 48em;
}
td.colspan3, th.colspan3 {
    width: 36em;
}
td.colspan2, th.colspan2 {
    width: 24em;
}
th {
  background-color: rgb(192, 192, 192);
  color: black;
  height: 1.7em;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.1em;
}
td.name {
  background-color: rgb(240, 240, 240);
  letter-spacing: 0.1em;
}
td.name, th.name {
  width: 10em;
}
</style>
<title>TestFind</title>
</head>
<body>
<h1>TestFind</h1>
<table border="1" id="setting">
<tr>
<th class="name" colspan="5">Settings</th>
</tr>
<tr>
<td class="name">Library</td>
<td>testlibs/TestFindLibrary.py</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Library</td>
<td>OperatingSystem</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="testcase">
<tr>
<th class="name" colspan="5">Test Cases</th>
</tr>
<tr>
<td class="name"><a name="test_No arguments should display help">No arguments should display help</a></td>
<td>Call the script</td>
<td>\</td>
<td>\</td>
<td>\</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>usage: find.py -name NAME [path...]find.py: error: argument -name is required</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Improper number of arguments will display help">Improper number of arguments will display help</a></td>
<td>Call the script</td>
<td>./</td>
<td>\</td>
<td>\</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>usage: find.py -name NAME [path...]find.py: error: argument -name is required</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Invalid path should fail">Invalid path should fail</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Findme.txt</td>
<td>C:${/}t $ mp</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>Error: Directory does not exist.</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Non existent path should fail">Non existent path should fail</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Findme.txt</td>
<td>C:${/}tmp</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>Error: Directory does not exist.</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Finds no file returns nothing">Finds no file returns nothing</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Chief.txt</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>\</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Finds single file returns single result">Finds single file returns single result</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Starbuck.txt</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>${CURDIR}${/}testlibs${/}sample${/}Galactica${/}Caprica${/}Starbuck.txt</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Finds multiple files returns multiple results">Finds multiple files returns multiple results</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Athena.txt</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>${CURDIR}${/}testlibs${/}sample${/}Cylon${/}Athena.txt${CURDIR}${/}testlibs${/}sample${/}Galactica${/}Cylon${/}Athena.txt</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Finds single directory returns single result">Finds single directory returns single result</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Galactica</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>${CURDIR}${/}testlibs${/}sample${/}Galactica</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Finds multiple directories returns multiple results">Finds multiple directories returns multiple results</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Cylon</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>${CURDIR}${/}testlibs${/}sample${/}Cylon${CURDIR}${/}testlibs${/}sample${/}Galactica${/}Cylon</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Regex finds no files">Regex finds no files</a></td>
<td>Call the script</td>
<td>-name</td>
<td>ZVDDFEX</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>\</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Regex finds single file">Regex finds single file</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Star.*.txt</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>${CURDIR}${/}testlibs${/}sample${/}Galactica${/}Caprica${/}Starbuck.txt</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Regex finds multiple files">Regex finds multiple files</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Ath.*.txt</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>${CURDIR}${/}testlibs${/}sample${/}Cylon${/}Athena.txt${CURDIR}${/}testlibs${/}sample${/}Galactica${/}Cylon${/}Athena.txt</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Regex finds single file name that is substring of another file">Regex finds single file name that is substring of another file</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Missile.htm</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>${CURDIR}${/}testlibs${/}sample${/}Galactica${/}Missile.htm</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Improper regex should fail">Improper regex should fail</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Ath.)(*.txt</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>Error: Invalid search expression (unbalanced parenthesis).</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Find works with path ending in slash">Find works with path ending in slash</a></td>
<td>Call the script</td>
<td>-name</td>
<td>Galactica</td>
<td>${CURDIR}${/}testlibs${/}sample${/}</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>${CURDIR}${/}testlibs${/}sample${/}Galactica</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_Empty Regex fails">Empty Regex fails</a></td>
<td>Call the script</td>
<td>-name</td>
<td>\</td>
<td>${CURDIR}${/}testlibs${/}sample</td>
</tr>
<tr>
<td class="name"></td>
<td>Status should be</td>
<td>Error: Empty search expression not allowed.</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="keyword">
<tr>
<th class="name" colspan="5">Keywords</th>
</tr>
<tr>
<td class="name"><a name="keyword_Call the script">Call the script</a></td>
<td>[Arguments]</td>
<td>${command}</td>
<td>${expression}</td>
<td>${path}</td>
</tr>
<tr>
<td class="name"></td>
<td>call script</td>
<td>${command}</td>
<td>${expression}</td>
<td>${path}</td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Status should be">Status should be</a></td>
<td>[Arguments]</td>
<td>${expected_message}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>check status</td>
<td>${expected_message}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
